<template>

  <div class="shouye">
    <transition name='absd' mode="out-in">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </transition>
    <div class="routers">
      <router-link class="rou" to="/myshouye/shouye">首页</router-link>
      <router-link class="rou" to="/myshouye/baobaotuan">爆爆团</router-link>
      <router-link class="rou" to="/myshouye/dingdan">订单</router-link>
      <router-link class="rou" to="/myshouye/wode">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang='scss' scoped>
.absd-enter {
  opacity: 0;
}
.absd-enter-active {
  transition: all 0.4s;
}
.absd-enter-to {
  opacity: 1;
}
.absd-leave {
  opacity: 1;
}
.absd-leave-active {
  transition: all 0.4s;
}
.absd-leave-to {
  opacity: 0;
}
.shouye {
  width: 100%;
  height: 100%;
}
.routers {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  border-top: 1px solid gray;
  bottom: 0;
  background-color: #fff;
}
.rou {
  font-size: 16px;
  color: #000;
  text-decoration: none;
}
.router-link-active {
  color: rgb(34, 25, 220);
}
</style>